using System;
using Cysharp.Threading.Tasks;
using UnityEngine;

namespace Framework.UI
{
    public class UIView : MonoBehaviour
    {
        [HideInInspector]
        public UIController controller { get; set; }

        public virtual void Dispose()
        {
            
        }

        public virtual async UniTask RefreshUI()
        {
            await UniTask.CompletedTask;
        }

        private void OnDestroy()
        {
            Dispose();
            controller = null;
        }
    }
}